﻿using System;
using System.Windows.Forms;

namespace idataplatform
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new login());

            login form2 = new login();

            //界面转换
            form2.ShowDialog();

            if (form2.DialogResult == DialogResult.OK)
            {
                form2.Dispose();
                Application.Run(new Form1());
            }
            else if (form2.DialogResult == DialogResult.Cancel)
            {
                form2.Dispose();
                return;
            }

        }
    }
}
